package com.lt.lumentracks.utils;

import org.springframework.stereotype.Component;

@Component
public class CommonUtils {

    public static String formatWithStringFormat(String template, Object... values) {
        String convertedTemplate = template.replace("{}", "%s"); // 将{}转换为%S
        return String.format(convertedTemplate, values);
    }

}
